package com.goktech.project.hmw.service.impl;

import com.goktech.project.hmw.dao.IFwlsjDao;
import com.goktech.project.hmw.mapper.Fwlsj;
import com.goktech.project.hmw.service.IFwlsjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FwlsjServiceImpl implements IFwlsjService {

	@Autowired
	private IFwlsjDao fwlsjDao;
	/**
	 * 通过area_id获取访问两数据
	 *
	 * @param area_id
	 * @return
	 */
	@Override
	public List<Fwlsj> listFwlsjByArea_id(String area_id) {
		return fwlsjDao.listFwlsjByArea_id(area_id);
	}

	/**
	 * 通过访问方式返回访问量集合
	 *
	 * @param visit_type
	 * @return
	 */
	@Override
	public List<Fwlsj> listFwlsjByVisit_type(String visit_type) {
		return fwlsjDao.listFwlsjByVisit_type(visit_type);
	}

	/**
	 * 通过开始时间结束时间返回访问量数据集合
	 *
	 * @param startTime
	 * @param endTime
	 * @return
	 */
	@Override
	public List<Fwlsj> listFwlsjByTime(String startTime, String endTime) {
		return fwlsjDao.listFwlsjByTime(startTime,endTime);
	}
}
